package com.qd.pay.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 天府银行总交易信息
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_tf_bills_time")
public class TfBillsTime extends Model<TfBillsTime> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "bid", type = IdType.ASSIGN_ID)
    private String bid;
    /**
     * 订单日期
     */
    @TableField("order_date")
    private String orderDate;
    /**
     * 返回结果记录数
     */
    @TableField("order_count")
    private Integer orderCount;
    /**
     * 汇总金额
     */
    @TableField("order_money")
    private BigDecimal orderMoney;
    /**
     * 服务商号（直连商户号）
     */
    @TableField("partner")
    private String partner;
    /**
     * 特约商户号
     */
    @TableField("subpartner")
    private String subpartner;

    public void freeData() {
        this.bid = null;
        this.orderDate = null;
        this.orderCount = null;
        this.orderMoney = null;
        this.partner = null;
        this.subpartner = null;
    }

}
